package cn.cxyxj.study03;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello(){
        return "你好 Spring Security";
    }

    @GetMapping("/cxyxj/hello")
    public String cxyxj() {
        return "cxyxj 你好 Spring Security";
    }

    @GetMapping("/security/hello")
    public String user() {
        return "user 你好 Spring Security";
    }


    @GetMapping("/permitAll")
    public String permitAll() {
        return "permitAll 你好 Spring Security";
    }

    @GetMapping("/denyAll")
    public String denyAll() {
        return "denyAll 你好 Spring Security";
    }
}
